package com.pinda.service.impl;

import com.pinda.mapper.PdTransportOrderMapper;
import com.pinda.service.IPdTransportOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pinda.work.entity.PdTransportOrder;
import com.pinda.work.vo.TransportOrderQueryView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 运单表 服务实现类
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-13
 */
@Service
public class PdTransportOrderServiceImpl extends ServiceImpl<PdTransportOrderMapper, PdTransportOrder> implements IPdTransportOrderService {

    @Autowired
    private PdTransportOrderMapper pdTransportOrderMapper;

    /**
     * 查询该运输任务有的运单
     * 运单详情的查询：
     * pd_task_transport 运输任务表
     * pd_transport_order 运单表
     * pd_transport_order_task 运单与运输任务关联表
     * pd_order 订单表
     * @return
     */
    @Override
    public List<TransportOrderQueryView> querypagetransportorderviewService(String id) {
        return this.pdTransportOrderMapper.querypagetransportorderview(id);
    }
}
